package yf.mall.dao;

import com.yf.dao.BaseDao;
import org.apache.ibatis.annotations.Param;
import yf.mall.entity.MallSkuEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * SKU详情Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 08 17:38:32 CST 2019
 */
@Mapper
public interface MallSkuDao extends BaseDao<MallSkuEntity> {
    int saveList(@Param("list") List<MallSkuEntity> list, @Param("goodsId") Long goodsId);

    List<MallSkuEntity> queryListByGoodsId(Long goodsId);

    int deleteByGoodsId(Long goodsId);

    MallSkuEntity queryNameAndGoodsId(String name, Long goodsId);
}
